package web.study.log;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LogTest
{
    static Logger logger = Logger.getLogger(LogTest.class);
    static
    {
        //装入log4j配置信息 
        PropertyConfigurator.configure("src/myLog4j.properties");
    }
    
    public static void wirteLog(String log)
    {
        logger.info(log);
    }
    
    public static void main(String[] args)
    {
        wirteLog("adfasdfas123123");
        logger.info("11111111111111111111111111111111");
    }
}
